<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEmployeesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEmployeesLabel_firstName}"/>
                    <h:outputText value="#{employeesController.selected.firstName}" title="#{bundle.ViewEmployeesTitle_firstName}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_lastName}"/>
                    <h:outputText value="#{employeesController.selected.lastName}" title="#{bundle.ViewEmployeesTitle_lastName}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_personalEmail}"/>
                    <h:outputText value="#{employeesController.selected.personalEmail}" title="#{bundle.ViewEmployeesTitle_personalEmail}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_businessEmail}"/>
                    <h:outputText value="#{employeesController.selected.businessEmail}" title="#{bundle.ViewEmployeesTitle_businessEmail}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_address}"/>
                    <h:outputText value="#{employeesController.selected.address}" title="#{bundle.ViewEmployeesTitle_address}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_birthDate}"/>
                    <h:outputText value="#{employeesController.selected.birthDate}" title="#{bundle.ViewEmployeesTitle_birthDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_nationality}"/>
                    <h:outputText value="#{employeesController.selected.nationality}" title="#{bundle.ViewEmployeesTitle_nationality}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_maritalStatus}"/>
                    <h:outputText value="#{employeesController.selected.maritalStatus}" title="#{bundle.ViewEmployeesTitle_maritalStatus}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_gender}"/>
                    <h:outputText value="#{employeesController.selected.gender}" title="#{bundle.ViewEmployeesTitle_gender}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_skype}"/>
                    <h:outputText value="#{employeesController.selected.skype}" title="#{bundle.ViewEmployeesTitle_skype}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_phoneNumber}"/>
                    <h:outputText value="#{employeesController.selected.phoneNumber}" title="#{bundle.ViewEmployeesTitle_phoneNumber}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_mobile1}"/>
                    <h:outputText value="#{employeesController.selected.mobile1}" title="#{bundle.ViewEmployeesTitle_mobile1}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_mobile2}"/>
                    <h:outputText value="#{employeesController.selected.mobile2}" title="#{bundle.ViewEmployeesTitle_mobile2}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_salary}"/>
                    <h:outputText value="#{employeesController.selected.salary}" title="#{bundle.ViewEmployeesTitle_salary}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_startDate}"/>
                    <h:outputText value="#{employeesController.selected.startDate}" title="#{bundle.ViewEmployeesTitle_startDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_status}"/>
                    <h:outputText value="#{employeesController.selected.status}" title="#{bundle.ViewEmployeesTitle_status}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_type}"/>
                    <h:outputText value="#{employeesController.selected.type}" title="#{bundle.ViewEmployeesTitle_type}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_jobTitle2}"/>
                    <h:outputText value="#{employeesController.selected.jobTitle2}" title="#{bundle.ViewEmployeesTitle_jobTitle2}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_jobTitle1}"/>
                    <h:outputText value="#{employeesController.selected.jobTitle1}" title="#{bundle.ViewEmployeesTitle_jobTitle1}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_currency}"/>
                    <h:outputText value="#{employeesController.selected.currency}" title="#{bundle.ViewEmployeesTitle_currency}"/>
                    
                    <h:outputText value="#{bundle.ListEmployeesTitle_allHolidays}"/>
                    <h:outputText value="#{employeesController.selected.allHolidays}" title="#{bundle.ListEmployeesTitle_allHolidays}"/>
                    
                    <h:outputText value="#{bundle.ListEmployeesTitle_usedHolidays}"/>
                    <h:outputText value="#{employeesController.selected.usedHolidays}" title="#{bundle.ListEmployeesTitle_usedHolidays}"/>
                
                    <h:outputText value="#{bundle.ViewEmployeesLabel_kinName}"/>
                    <h:outputText value="#{employeesController.selected.kinName}" title="#{bundle.ViewEmployeesTitle_kinName}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_kinRelationship}"/>
                    <h:outputText value="#{employeesController.selected.kinRelationship}" title="#{bundle.ViewEmployeesTitle_kinRelationship}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_kinPhoneNumber}"/>
                    <h:outputText value="#{employeesController.selected.kinPhoneNumber}" title="#{bundle.ViewEmployeesTitle_kinPhoneNumber}"/>
                    
                    <h:outputText value="#{bundle.ViewEmployeesLabel_kinEmail}"/>
                    <h:outputText value="#{employeesController.selected.kinEmail}" title="#{bundle.ViewEmployeesTitle_kinEmail}"/>
                    
                </h:panelGrid>
                <br />
                <h:commandButton action="#{employeesController.destroyAndView}" type="submit" value="#{bundle.ViewEmployeesDestroyLink}"/>
                <h:commandButton action="Edit" value="#{bundle.ViewEmployeesEditLink}" immediate="true" type="submit"/>
            </h:form>
            
            <h:form>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <h:commandButton action="#{employeesController.prepareCreate}" type="submit" value="#{bundle.ViewEmployeesCreateLink}" />
                <h:commandButton action="#{employeesController.prepareList}" type="submit" value="#{bundle.ViewEmployeesShowAllLink}"/>
                <h:commandButton value="#{bundle.ViewEmployeesIndexLink}" action="/index" type="submit" />
            </h:form>
        </ui:define>
    </ui:composition>
</html>
